package com.neusoft.approveserver.controller;


import com.neusoft.approveserver.dto.RespBean;
import com.neusoft.approveserver.service.IChanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 主机会表 前端控制器
 * </p>
 *
 * @author liuxp
 * @since 2021-07-12
 */
@RestController
@RequestMapping("/approve")
public class ChanceController {
    @Autowired
    IChanceService iChanceService;
    @PostMapping("/generateChanceCode/{id}")
    RespBean generateChanceCode(@PathVariable Integer id){
        return iChanceService.generateChanceCode(id);
    }
}

